package imnu.edu.oop1;

public class Student {
    //属性
    private int stuID;
    private String stuName;
    private boolean stuSex;
    //静态修饰属性
    public static String stuSchool;

    static{

    }

    public int getStuID() {
        return stuID;
    }

    public void setStuID(int stuID) {
        this.stuID = stuID;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public boolean isStuSex() {
        return stuSex;
    }

    public void setStuSex(boolean stuSex) {
        this.stuSex = stuSex;
    }

    //构造函数
    public Student(){
    }

    public Student(int stuID){
        this.stuID = stuID;
    }

    public Student(int stuID, String stuName, boolean stuSex){
        this.stuID = stuID;
        this.stuName = stuName;
        this.stuSex = stuSex;
    }

    //方法
    public void studing() {
        System.out.println("I am studing.....");
    }

    public void studing(String stuName){
        String stuObject = "";
        this.stuName = stuName;
        System.out.println(this.stuName + " is studing...");
    }
    //静态修饰方法
    public static void sayHi(){
        System.out.println("你好！");
    }
    public void sayBye(){
        System.out.println("Bye~~~"+stuSchool);
    }

}
